package ioc.circular;

import org.springframework.beans.factory.FactoryBean;

public class CircularTestFactoryBean2 implements FactoryBean {

  @Override
  public Object getObject() throws Exception {
    //    return "abc";
    return this; //返回this也好,返回abc也好,CircularTest2都可以正常注入
  }

  @Override
  public Class getObjectType() {
    return null;
  }

  @Override
  public boolean isSingleton() {
    return false;
  }
}
